<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>权限管理</title>
<style type="text/css">
   table{
     border-collapse: collapse;
     margin: 0 auto;
   }
</style>
</head>
<body>
<h1 style="text-align: center;">权限管理</h1>

 <table width="60%" border="1">
   <tr>
    <th>权限ID</th>
    <th>父权限ID</th>
    <th>权限名称</th>
    <th>URL</th>
    <th>操作</th>
   </tr>
   
   <c:forEach items="${allGrantList }" var="allGrant">
    <tr>
    <td>${allGrant.permissionId }</td>
    <td>${allGrant.parentId }</td>
    <td>${allGrant.permissionName }</td>
    <td>${allGrant.permissionUrl }</td>
    <td><a href="PermissionServlet?flag=preUpdateGrant&permissionId=${allGrant.permissionId }">修改</a>|<a href="PermissionServlet?flag=deleteGrant&permissionId=${allGrant.permissionId }">删除</a></td>
   </tr>
  </c:forEach>
 
 </table>
  

</body>
</html>